package hospital;

import java.io.*;
import java.io.FileNotFoundException;

/**
 * @author oldliu
 * @since 1.0
 */
public class CutFile2 {
    public static void main(String[] args) {
        try {
            FileOutputStream fout=new FileOutputStream("F:/111.png");
            File f=new File("E:/temp/3b4a04b7-cd92-4fe9-a8e4-1d7f8d97d95d.png");
            FileInputStream fin =new FileInputStream(f);
            int ch=0;
            while ((ch=fin.read())!=-1){
                fout.write(ch);
            }
            fout.close();
            fin.close();
            f.delete();
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
